﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace Behaviours.Helper
{
	public static class ObjectHelper
	{
		public static void Swap<T>(ref T t1, ref T t2)
		{
			T t3 = t1;
			t1 = t2;
			t2 = t3;
		}
		public static List<Type> GetTypes()
		{
			return typeof(ObjectHelper).GetType().Assembly.GetTypes().ToList();
			// List<Type> allTypes = new List<Type>();
			// foreach (Assembly assembly in this.assemblies.Values)
			// {
			// 	allTypes.AddRange(assembly.GetTypes());
			// }
			// return allTypes;
		}
		public static HashSet<Type> GetTypes(Type t)
		{
			return null;
			// List<Type> allTypes = new List<Type>();
			// foreach (Assembly assembly in this.assemblies.Values)
			// {
			// 	allTypes.AddRange(assembly.GetTypes());
			// }
			// return allTypes;
		}
	}
}